<%@ include file="/WEB-INF/jsp/fragments/includes.jspf"%>
<%@ include file="/WEB-INF/jsp/fragments/header_top.jspf"%>

<title>Sign In Page</title>
<script type="text/javascript" src="<c:url value='/resources/js/jquery.validate.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/js/register.js'/>"></script>

<%@ include file="/WEB-INF/jsp/fragments/header_bottom.jspf"%>

<body>
	<h1>Sign In Page</h1>
	<%@ include file="/WEB-INF/jsp/fragments/navigation.jspf"%>

	<div>
		<c:url value="/auth/register" var="registerUrl" />
		<form:form action="${registerUrl}" method="post" commandName="userCmd"
			id="register">
			<fieldset>
				<legend>Registration Info</legend>
				<ul>
					<li><form:label path="login">Login(alphanumeric):</form:label>
						<form:input type="text" path="login" /> <form:errors path="login" cssClass="error" delimiter=", " /></li>
					<li><form:label path="password">Password(min 5 chars): </form:label>
						<form:input type="password" path="password" />
						<form:errors path="password" cssClass="error" delimiter=", " /></li>
					<li><form:label path="confirmPassword">Confirm Password: </form:label>
						<form:input type="password" path="confirmPassword" /> <form:errors
							path="confirmPassword" cssClass="error" delimiter=", " /></li>
					<li><form:label path="email">Email: </form:label> <form:input
							type="text" path="email" />
						<form:errors path="email" cssClass="error" delimiter=", " /></li>
					<li><input id="register-btn" class="submit" type="submit" value="Register" /></li>

				</ul>
			</fieldset>

		</form:form>

	</div>

</body>
</html>
